package logicgame.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;

public class NivelesActivity extends Activity {
	
	private RadioButton n1,n2,n3;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		
	super.onCreate(savedInstanceState);
	requestWindowFeature(Window.FEATURE_NO_TITLE);
	setContentView(R.layout.niveles);
	
	n1=(RadioButton)findViewById(R.id.Nivel1);
	n2=(RadioButton)findViewById(R.id.Nivel2);
	n3=(RadioButton)findViewById(R.id.Nivel3);
	Button Comenzar = (Button) findViewById(R.id.comenzarnivel);

	Comenzar.setOnClickListener(
			new View.OnClickListener() {

    			public void onClick(View view) {
    				
    				if (n1.isChecked()==true) {
    					startActivity(new Intent(NivelesActivity.this,Nivel1Activity.class));
    				        } else
    				        	if (n2.isChecked()==true) {
    				        		startActivity(new Intent(NivelesActivity.this,Nivel2Activity.class));
    				        	}else
    				        		if (n3.isChecked()==true) {
    				        			startActivity(new Intent(NivelesActivity.this,Nivel3Activity.class));
    				        		}
    				            
    				    }    
    				
    	
    			

    	});   
			
}	
}

	
	

